package com.cargohu.aishouyu.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cargohu.aishouyu.member.entity.ChatPhrase;
import com.cargohu.aishouyu.member.req.ChatPhraseRequest;
import com.cargohu.aishouyu.member.resp.ChatPhraseDetailVo;
import com.cargohu.aishouyu.member.resp.ChatPhraseResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 聊天常用语 Mapper 接口
 *
 * @author yww
 * @since 2023-11-28
 */
@Mapper
public interface ChatPhraseMapper extends BaseMapper<ChatPhrase> {

    /**
     * 聊天常用语详情
     *
     * @param id
     * @return
     */
    ChatPhraseDetailVo getChatPhraseById(Long id);

    /**
     * 聊天常用语分页列表
     *
     * @param chatPhraseRequest
     * @return
     */
    List<ChatPhraseResponse> getChatPhraseList(ChatPhraseRequest chatPhraseRequest);

    /**
     * 获取所有用户聊天常用语
     *
     * @param memberId
     * @return
     * @throws Exception
     */
    List<ChatPhraseDetailVo> getAllChatPhraseByMemberId(Long memberId) throws Exception;

}
